import { RuleItem } from "./rule";
import {CSSProperties} from 'vue'
export interface FormOptions{
    //表单项的类型
    type:'autocomplete'|'cascader'|'checkbox'|'checkbox-group'|'checkbox-button'|
    'color-picker'|'date-picker'|'input'|'input-number'|'radio'|'radio-group'|'radio-button'|
    'rate'|'select'|'option'|'slider'|'switch'|'time-picker'|'transfer'|'upload',
    //表单项的值
    value:any,
    //表单项显示的值
    label?:string,
    //表单项绑定的标识
    prop?:string,
    //表单项验证规则
    rules?:RuleItem[],
    //占位符
    placeholder?:string,
    //表单项额外属性
    attrs?:{
        clearable?:boolean,
        showPassword?:boolean,
        disabled?:boolean,
        style?:CSSProperties,
    },
    children?:FormOptions[]

}